%% link formation
clear
predlnk = 1;
jaffepx = 1;
rnd_data1;

clear
predlnk = 1;
jaffepx = 0;
rnd_data1;
%% tax credit
clear
predlnk = 0;
rndlink = 0;
lnkyear = 5;
taxcred = 1;
rnd_data1;
%% link duration (fixed)
clear
predlnk = 0;
rndlink = 0;
lnkyear = 3;
taxcred = 0;
rnd_data1;

clear
predlnk = 0;
rndlink = 0;
lnkyear = 4;
taxcred = 0;
rnd_data1;

clear
predlnk = 0;
rndlink = 0;
lnkyear = 5;
taxcred = 0;
rnd_data1;

clear
predlnk = 0;
rndlink = 0;
lnkyear = 6;
taxcred = 0;
rnd_data1;

clear
predlnk = 0;
rndlink = 0;
lnkyear = 7;
taxcred = 0;
rnd_data1;
%% link duration (random)
clear
predlnk = 0;
rndlink = 1;
lnkyear = 3;
taxcred = 0;
rnd_data1;

clear
predlnk = 0;
rndlink = 1;
lnkyear = 4;
taxcred = 0;
rnd_data1;

clear
predlnk = 0;
rndlink = 1;
lnkyear = 5;
taxcred = 0;
rnd_data1;

clear
predlnk = 0;
rndlink = 1;
lnkyear = 6;
taxcred = 0;
rnd_data1;

clear
predlnk = 0;
rndlink = 1;
lnkyear = 7;
taxcred = 0;
rnd_data1;
%% manufacturing and services divisions
rnd_data1_m;
rnd_data1_s;
%% indirect tech spillovers
clear
siclink = 2;
rnd_data2;

clear
siclink = 3;
rnd_data2;
%% input-output linkages
rnd_data2_iolinks;

clear
jaffepx = 1;
rnd_data1_iolinks;

clear
jaffepx = 0;
rnd_data1_iolinks;
%% alternative competition matrix
clear
compmat = 1;
rnd_data3;

clear
compmat = 2;
rnd_data3;

clear
compmat = 3;
rnd_data3;